﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Guest.Master" AutoEventWireup="true"
    CodeBehind="Edit.aspx.cs" Inherits="ScrumLite.WebUx.WorkAreasViews.Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
    function save()
    {
        var name = document.getElementById("name");
        
        if (name.value == "")
        {
            alert("must insert a name");
            return;
        }

        document.forms[0].submit();
    }
    </script>
    <h1>
        <%=ViewData.ProjectName%></h1>
    <hr />
    <h2>
        Work Areas</h2>
    <br />
    <form action="<%=Url.Action(new { Action = "Save", Controller = "WorkAreas" })%>"
    method="post">
    <fieldset>
        <div class="actions">
            <a href="javascript:void(0);" tabindex="8" onclick="javascript:save();">Save</a>&nbsp;&nbsp;&nbsp;
            <%= Html.ActionLink("Cancel", "List", "WorkAreas" ) %>&nbsp;
        </div>
        <div class="entryForm">
            <br />
            <br />
            
            <br />
            <p>
                <strong>Name</strong><br />
                <input name="name" style="width: 300px; height: 15px; white-space: nowrap;" value="<%=ViewData.Name%>"
                    size="40" />
                <input name="id" type="hidden" style="display: none;" value="<% =ViewData.Id.ToString() %>" />
            </p> 
             <br />           
        </div>
        <br />
        <div class="actions">
            <a href="javascript:void(0);" tabindex="8" onclick="javascript:save();">Save</a>&nbsp;&nbsp;&nbsp;
            <%= Html.ActionLink("Cancel", "List", "WorkAreas")%>&nbsp;
        </div>
    </fieldset>
    </form>
</asp:Content>
